Module-level declarations
Types
Link copied to clipboard
struct gather_dto
Link copied to clipboard
enum ground_type
Link copied to clipboard
struct module_args
Link copied to clipboard
struct place_resource_node_dto
Link copied to clipboard
struct relocate_dto
Link copied to clipboard
entity resource_node
Link copied to clipboard
struct resource_node_dto
Link copied to clipboard
entity resource_node_prototype
Link copied to clipboard
struct resource_node_prototype_dto
Link copied to clipboard
object resource_nodes_config
Functions
Link copied to clipboard
function _place_resource_node(place_resource_node_dto: place_resource_node_dto, plot: instance, plot_id: integer)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function get_all_cells_for_resource_node(width: integer, height: integer, location: location, rotation: grid_rotation): set<location>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@extend(require_occupancy_based_on_locations) function require_occupancy_based_on_locations(griddable: instance, locations: set<location>, optional_params: map<text, byte_array>)
Queries
Link copied to clipboard
Link copied to clipboard
@mount("resource_nodes.get_resource_node_prototypes")
query get_resource_node_prototypes(): list<resource_node_prototype_dto>
Link copied to clipboard
@mount("resource_nodes.get_resource_nodes_on_plot")
query get_resource_nodes_on_plot(plot_id: integer): list<resource_node_dto>
Operations
Link copied to clipboard
@mount("resource_nodes.gather")
operation gather(account_id: byte_array, auth_descriptor_id: byte_array, gather_actions: list<gather_dto>)
Link copied to clipboard
@mount("resource_nodes.place_resource_nodes_on_plot")
operation place_resource_nodes_on_plot(plot_id: integer, resource_nodes: list<place_resource_node_dto>)
Link copied to clipboard
@mount("resource_nodes.register_resource_node_prototype")
operation register_resource_node_prototype(name: text, width: integer, height: integer, charges: integer, harvest_time: integer, replenish_duration: integer, durability_cost: integer, tier: integer, ground_type: ground_type, tool_category: tool_category, loot_table_name: text)
Link copied to clipboard
@mount("resource_nodes.relocate")
operation relocate(account_id: byte_array, auth_descriptor_id: byte_array, relocate_actions: list<relocate_dto>)
Link copied to clipboard
@mount("resource_nodes.set_fast_replenish_duration")
operation set_fast_replenish_duration(new_value: integer)
Link copied to clipboard
@mount("resource_nodes.update_resource_node_prototype")
operation update_resource_node_prototype(new: resource_node_prototype_dto)